home *** CD-ROM | disk | FTP | other *** search
/ Willard Press Kit / Willard Press Kit.iso / mac / Acrobat Reader 5 / Acrobat Reader 5.0 / Acrobat Reader 5.0.rsrc / EXVW_10002_admStdSecurity < prev    next >
Text File  |  2001-09-24  |  4KB  |  107 lines

  1. gEditItemWidth = max_char_width() * 8;
  2.  
  3. gStdSecSetBitNum = max(
  4.     zstring_width(zstring: '$$$avSecurityStandardHandler40'),
  5.     zstring_width(zstring: '$$$avSecurityStandardHandler128'));
  6.  
  7. gStdSecSetChangeDoc = max(
  8.     zstring_width(zstring: '$$$avSecurityStdChgNone'),
  9.     zstring_width(zstring: '$$$avSecurityStdChgDocAsmbly'),
  10.     zstring_width(zstring: '$$$avSecurityStdChgFormFill'),
  11.     zstring_width(zstring: '$$$avSecurityStdChgAnnotFill'),
  12.     zstring_width(zstring: '$$$avSecurityStdChgAll'));
  13.  
  14. gStdSecSetPrintDoc = max(
  15.     zstring_width(zstring: '$$$avSecurityStdPrntNone'),
  16.     zstring_width(zstring: '$$$avSecurityStdPrntBasic'),
  17.     zstring_width(zstring: '$$$avSecurityStdPrntPS'));
  18.  
  19. gLabelUserPassword= zstring_width(zstring: '$$$/Dialogs/StdSecurity/SpecifyPassword/UserPassword');
  20. gLabelOwnerPassword= zstring_width(zstring: '$$$/Dialogs/StdSecurity/SpecifyPassword/OwnerPassword');
  21. gLabelChangeDocLabel= zstring_width(zstring: '$$$/Dialogs/StdSecurity/128BitMode/ChangeDocLabel');
  22. gLabelPrintingLable= zstring_width(zstring: '$$$/Dialogs/StdSecurity/128BitMode/PrintingLable');
  23. gLabelItemWidth = max(
  24.     gLabelChangeDocLabel,
  25.      gLabelPrintingLable)+ max_char_width();
  26.  
  27. gLabelPasswordItemWidth = max(
  28.      gLabelUserPassword,
  29.      gLabelOwnerPassword)+ max_char_width() * 4;
  30.  
  31. gVerticalGapHeight = gStaticTextHeight / 4;
  32. dialog(name: '$$$/Dialogs/StdSecurity', target_id: 'OpPs')
  33. {
  34.     group()
  35.     {
  36.         group(align_children: align_fill)
  37.         {
  38.             cluster(name: '$$$/Dialogs/StdSecurity/SpecifyPassword/ClusterLabel', align_children: align_left)
  39.             {
  40.                 group()
  41.                 {
  42.                     check_box(item_id: 'UsrX', name: '$$$/Dialogs/StdSecurity/SpecifyPassword/RequireOpenPassword');
  43.                     view(align_children: align_row)
  44.                     {
  45.                         gap(width: gLabelPasswordItemWidth - gLabelUserPassword);
  46.                         static_text(name: '$$$/Dialogs/StdSecurity/SpecifyPassword/UserPassword');            
  47.                         edit_text(item_id: 'UsPs', width: gEditItemWidth, password: true);
  48.                     }
  49.                     check_box(item_id: 'OwnX', name: '$$$/Dialogs/StdSecurity/SpecifyPassword/RequireOwnerPassword');
  50.                     view(align_children: align_row)
  51.                     {
  52.                         gap(width: gLabelPasswordItemWidth - gLabelOwnerPassword);
  53.                         static_text(name: '$$$/Dialogs/StdSecurity/SpecifyPassword/OwnerPassword');            
  54.                         edit_text(item_id: 'OwPs', width: gEditItemWidth, password: true);            
  55.                     }
  56.                 }    
  57.             }
  58.             cluster(name: '$$$/Dialogs/StdSecurity/Permission/ClusterLabel', align_children: align_row)
  59.             {
  60.                 group()
  61.                 {
  62.                     view(align_children: align_row)
  63.                     {
  64.                         static_text(item_id: 'cbit', name: '$$$/Dialogs/StdSecurity/CryptBit/CryptBitLabel',
  65.                             next_tab: 'Cbit');            
  66.                         popup(item_id: 'Cbit', width: gStdSecSetBitNum, next_tab: 'Copy');
  67.                     }
  68.  
  69.                     view(align_children: align_offscreen)
  70.                     {
  71.                         group(item_id: 'grp1', alignment: align_row)
  72.                         {
  73.                             check_box(item_id: 'Prin', name: '$$$/Dialogs/StdSecurity/40BitMode/Printing');
  74.                             check_box(item_id: 'Edit', name: '$$$/Dialogs/StdSecurity/40BitMode/Changing');
  75.                             check_box(item_id: 'Copy', name: '$$$/Dialogs/StdSecurity/40BitMode/Selecting');
  76.                             check_box(item_id: 'Note', name: '$$$/Dialogs/StdSecurity/40BitMode/Annot');
  77.                         }
  78.                         group(item_id: 'grp2', alignment: align_row)
  79.                         {
  80.                             gap( height: gVerticalGapHeight );
  81.                             check_box(item_id: 'Acce', name: '$$$/Dialogs/StdSecurity/128BitMode/Access');
  82.                             check_box(item_id: 'Exct', name: '$$$/Dialogs/StdSecurity/128BitMode/Extract');
  83.                             gap( height: gVerticalGapHeight );
  84.  
  85.                             view(align_children: align_row)
  86.                             {
  87.                                 gap( width: gLabelItemWidth - gLabelChangeDocLabel );
  88.                                 static_text(item_id: 'chgd', name: '$$$/Dialogs/StdSecurity/128BitMode/ChangeDocLabel',
  89.                                     next_tab: 'Chgd');            
  90.                                 popup(item_id: 'Chgd', width: gStdSecSetChangeDoc, next_tab: 'prtD');
  91.                             }
  92.                             view(align_children: align_row)
  93.                             {
  94.                                 gap( width: gLabelItemWidth - gLabelPrintingLable );
  95.                                 static_text(item_id: 'prtd', name: '$$$/Dialogs/StdSecurity/128BitMode/PrintingLable',
  96.                                     next_tab: 'Prtd');            
  97.                                 popup(item_id: 'Prtd', width: gStdSecSetPrintDoc, next_tab: 'prtD');
  98.                             }
  99.                         }
  100.                     }
  101.                 }
  102.             }
  103.         }
  104.         ok_cancel();
  105.     }
  106. }
  107.